import request from '@/utils/request'

// 查询用户签署协议记录列表
export function listAgreement_record(params) {
  return request({
    url: '/admin/api/agreement_record/list',
    method: 'get',
    params
  })
}

// 查询用户签署协议记录详细
export function getAgreement_record(id) {
  return request({
    url: '/admin/api/agreement_record/' + id,
    method: 'get'
  })
}

// 新增用户签署协议记录
export function addAgreement_record(data) {
  return request({
    url: '/admin/api/agreement_record/add',
    method: 'post',
    data
  })
}

// 修改用户签署协议记录
export function updateAgreement_record(data) {
  return request({
    url: '/admin/api/agreement_record/update',
    method: 'put',
    data
  })
}

// 删除用户签署协议记录
export function delAgreement_record(data) {
  return request({
    url: '/admin/api/agreement_record/delete',
    method: 'delete',
    data
  })
}

// 导出用户签署协议记录
export function exportAgreement_record(query) {
  return request({
    url: '/admin/api/agreement_record/export',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
